<?php slot('studyGroupsNav', 'active')?>
<div class="messages" id="wrapper">
	<?php include_partial('global/systemMessages', array('form' => $form)) ?>
	<div id="content">
	<!-- 
		<div id="location-bar">
			<form method="post" action="">
				<fieldset>
					<select>
						<option>Harvard</option>
					</select>
				</fieldset>
			</form>
			<ul class="breadcrumbs">
				<li class="first"><a href="#">Groups</a> &#xBB;</li>
				<li>Yale's English Peasants</li>
			</ul>
		</div>
	-->
		<div id="main" style="padding-top: 30px;">
			<div class="main-heading">
				<h1><?php echo $group->getName() ?></h1>
			</div>
			<?php include_partial('groups/subnav', array('group_id' => $group_id))?>		
			<div class="filter-links with-icon">
				<ul class="messages inline">
					<li>Send a New Message</li>
				</ul>
			</div>

			<form action="<?php echo url_for('messages/create') ?>" method="post" class="settings" style="padding: 0px;">
				<div>
					<fieldset>
							<p><label>To: <?php echo $group->getName() ?></label></p><br/>
							<p>
								<label>Subject:</label>
								<?php echo $form['subject']->render(array('class' => 'input-text')) ?>
							</p>
							<p>
								<label>Message:</label>
								<?php echo $form['body']->render() ?>
							</p>
							<p>
								<input type="submit" value="Send Message" />
								&nbsp; &nbsp;
								<?php echo link_to('cancel', 'messages/index?group_id='.$group_id)?>
								<input type="hidden" name="group_id" value="<?php echo $group_id ?>" />
								<input type="hidden" name="reply_id" value="<?php echo $sf_request->getParameter('reply_id') ?>" />
								<?php echo $form->renderHiddenFields() ?>
							</p>
					</fieldset>
				</div>
			</form>
			
		</div>
	</div>

</div>
